#ifndef _MAIN_FORM_H_
#define _MAIN_FORM_H_

#include <gtkmm.h>

class Spyware_Scanner;

class Main_Form : public Gtk::Window
{
public:

	Main_Form();
	virtual ~Main_Form();

private:
	class ListViewColumns : public Gtk::TreeModel::ColumnRecord
	{
		public:
		Gtk::TreeModelColumn<bool>	select_;
		Gtk::TreeModelColumn<Glib::ustring>	name_;
		Gtk::TreeModelColumn<Glib::ustring>	harm_;
		ListViewColumns() { add(select_); add(name_); add(harm_); }
	};
	ListViewColumns list_columns_;

	void	on_scan_button_clicked();
	void	on_kill_button_clicked();
	Gtk::Statusbar	status_bar_;
	Gtk::TreeView	list_view_;
	Gtk::ProgressBar progress_;
	Glib::RefPtr<Gtk::ListStore>	list_model_;
	guint context_id_;
	Spyware_Scanner	* sw_scanner_;
};
#endif
